.date-calculator {
  padding: 16px;
  background-color: #f0f2f5;
  min-height: 100vh;

  .converter-header {
    margin-bottom: 24px;
    text-align: center;

    .header-title {
      font-size: 40px;
      font-weight: 600;
      color: #ffffff;
      text-shadow: 0 2px 10px rgba(69, 104, 220, 0.1);
    }
  }

  .tab-content {
    .group-container {
      background-color: #fff;
      border-radius: 16px;
      margin-bottom: 20px;
      padding: 20px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(230, 230, 230, 0.7);

      .group-title {
        font-size: 34px;
        color: #4568dc;
        margin-bottom: 16px;
        font-weight: 600;
        border-left: 4px solid #4568dc;
        padding-left: 12px;
      }

      .cell-container {
        display: flex;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid #f0f2f5;

        &:last-child {
          border-bottom: none;
        }

        .cell-title {
          flex: 1;
          font-size: 34px;
          color: #333;
          font-weight: 500;
        }

        .cell-value {
          flex: 2;
          display: flex;
          align-items: center;
          justify-content: flex-end;
          color: #333;
          font-size: 34px;

          .date-value {
            margin-right: 12px;
            background-color: #f0f2f5;
            padding: 8px 12px;
            border-radius: 8px;
            color: #4568dc;
          }
        }
      }
    }

    .button-container {
      margin: 24px 0;
    }

    .result-content {
      width: 100%;

      .result-label {
        font-size: 34px;
        color: #666;
        margin-bottom: 12px;
        display: block;
      }

      .result-value-container {
        text-align: center;
        padding: 20px 0;
        background: linear-gradient(135deg, #f5f7fa, #f1f4f9);
        border-radius: 12px;
        border: 1px solid rgba(69, 104, 220, 0.2);

        .result-value {
          font-size: 40px;
          font-weight: 600;
          color: #4568dc;
          text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
      }
    }
  }
}

.converter-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  background: linear-gradient(135deg, #3a7bd5, #3a6073);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;

  .header-title {
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .back-icon {
    position: absolute;
    left: 15px;
    color: #fff;
    font-size: 34px;
  }
}

.taroify-tabs {
  --tabs-nav-background-color: #fff;
  --tabs-bottom-bar-color: #4568dc;
  --tabs-active-text-color: #4568dc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  border-radius: 12px;

  .taroify-tab {
    font-size: 34px;
    padding: 20px 0;
    font-weight: 500;
  }
}

.tab-content {
  padding: 0 8px;
}

.taroify-cell-group__title {
  font-size: 34px;
  color: #3a7bd5;
  font-weight: 600;
  padding-left: 10px;
}

.taroify-cell-group--inset {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

  .taroify-cell {
    font-size: 34px;
    padding: 20px 16px;

    &::after {
      border-color: rgba(0, 0, 0, 0.06);
    }

    .taroify-cell__title {
      color: #333;
      font-weight: 500;
    }

    .taroify-cell__value {
      color: #555;
    }

    .taroify-icon {
      color: #3a7bd5;
      font-size: 34px;
    }
  }
}

.taroify-radio-group {
  display: flex;
  flex-wrap: wrap;

  .taroify-radio {
    margin-right: 24px;
    margin-bottom: 8px;

    &__icon {
      --radio-checked-icon-color: #4568dc;
      transform: scale(1.2);
    }

    &__label {
      font-size: 34px;
      color: #333;
      margin-left: 8px;
    }
  }
}

.taroify-field {
  width: 100%;

  &__label {
    color: #333;
    font-size: 34px;
    font-weight: 500;
  }

  .taroify-input {
    font-size: 34px;
    color: #444;
  }
}

.button-container {
  margin: 30px 0;
  padding: 0 10px;

  .taroify-button {
    --button-primary-background-color: #4568dc;
    --button-primary-border-color: #4568dc;
    font-size: 36px;
    padding: 24px 0;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 8px 16px rgba(69, 104, 220, 0.2);
    position: relative;
    overflow: hidden;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
      pointer-events: none;
    }

    &:active {
      transform: translateY(2px);
      box-shadow: 0 4px 8px rgba(69, 104, 220, 0.2);
    }
  }
}

.date-value {
  font-size: 34px;
  color: #4568dc;
  font-weight: 500;
}

.result-content {
  display: flex;
  flex-direction: column;

  .result-label {
    font-size: 34px;
    color: #555;
    margin-bottom: 10px;
  }

  .result-value-container {
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.1), rgba(58, 123, 213, 0.2));
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .result-value {
    font-size: 34px;
    color: #3a7bd5;
    font-weight: bold;
  }
}

// 日期选择器样式
.taroify-popup {
  --popup-background-color: #f8f8f8;

  .taroify-datetime-picker {
    --picker-cancel-action-text-color: #999;
    --picker-confirm-action-text-color: #4568dc;

    &__toolbar {
      padding: 15px;

      &__title {
        font-size: 34px;
        font-weight: 500;
      }

      &__button {
        font-size: 34px;
        font-weight: 500;
      }
    }
  }
}

// 输入框样式美化
.taroify-input {
  background-color: #f5f7fa;
  border-radius: 8px;
  padding: 12px 16px;
  color: #333;
  font-size: 34px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);

  &:focus {
    box-shadow: 0 0 0 2px rgba(69, 104, 220, 0.2);
  }
}

// 添加图标样式
.taroify-icon {
  color: #4568dc;
  font-size: 40px;
}
